home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / progutil / stdwin.zoo / atari / atari_proto.h < prev    next >
C/C++ Source or Header  |  1990-03-30  |  5KB  |  130 lines

  1. #ifdef __STDC__
  2. # define    P(s) s
  3. #else
  4. # define P(s) ()
  5. #endif
  6.  
  7.  
  8. /* about.c */
  9.  
  10. /* dialog.c */
  11. int waskfile P((char *prompt , char *buf , int buflen , int new ));
  12. TEDINFO *tedinfo P((char *buf , int len ));
  13. OBJECT *str_obj P((char *prompt , char *buf , int buflen ));
  14. int waskstr P((char *prompt , char *buf , int buflen ));
  15. int waskync P((char *question , int def ));
  16. void wmessage P((char *str ));
  17.  
  18. /* document.c */
  19. void wchange P((WINDOW *win , int left , int top , int right , int bottom ));
  20. void wgetchange P((WINDOW *win , int *pleft , int *ptop , int *pright , int *pbottom ));
  21. void wupdate P((WINDOW *win ));
  22. void wsetorigin P((WINDOW *win , int h , int v ));
  23. void wgetwinorigin P((WINDOW *win , int *ph , int *pv ));
  24. void wsetdocsize P((WINDOW *win , int width , int height ));
  25. void wshow P((WINDOW *win , int left , int top , int right , int bottom ));
  26. void setclip P((WINDOW *win , int flag , int left , int top , int right , int bottom ));
  27. int intersect P((int *src , int *dest ));
  28.  
  29. /* draw.c */
  30. void wsetwintextattr P((WINDOW *win , TEXTATTR *attr ));
  31. void wgetwintextattr P((WINDOW *win , TEXTATTR *attr ));
  32. void wbegindrawing P((WINDOW *win ));
  33. void wenddrawing P((WINDOW *win ));
  34. int wdrawtext P((int h , int v , char *str , int len ));
  35. int wdrawchar P((int h , int v , int c ));
  36. void wdrawline P((int beg_h , int beg_v , int end_h , int end_v ));
  37. void wxorline P((int beg_h , int beg_v , int end_h , int end_v ));
  38. void wdrawbox P((int left , int top , int right , int bottom ));
  39. void wdrawcircle P((int h , int v , int radius ));
  40. void werase P((int left , int top , int right , int bottom ));
  41. void wpaint P((int left , int top , int right , int bottom ));
  42. void wshade P((int left , int top , int right , int bottom , int perc ));
  43. void winvert P((int left , int top , int right , int bottom ));
  44. void showcaret P((void ));
  45. void rmcaret P((void ));
  46. void wsetcaret P((WINDOW *win , int h , int v ));
  47. void wnocaret P((WINDOW *win ));
  48.  
  49. /* event.c */
  50. void wungetevent P((EVENT *ep ));
  51. void wgetevent P((EVENT *ep ));
  52.  
  53. /* menu.c */
  54. void initmbar P((WINDOW *win ));
  55. void initglobmenus P((void ));
  56. void addtobar P((struct menubar *pbar , MENU *pm ));
  57. void delofbar P((struct menubar *pbar , MENU *pm ));
  58. void addtoall P((MENU *pm ));
  59. MENU *wmenucreate P((int id , char *title ));
  60. void wmenusetdeflocal P((int flag ));
  61. void wmenuattach P((WINDOW *win , MENU *pm ));
  62. void wmenudetach P((WINDOW *win , MENU *pm ));
  63. void wmenudelete P((MENU *pm ));
  64. int wmenuadditem P((MENU *pm , char *str , int shortcut ));
  65. void wmenusetitem P((MENU *pm , int item , char *text ));
  66. void wmenuenable P((MENU *pm , int item , int flag ));
  67. void wmenucheck P((MENU *pm , int item , int flag ));
  68. OBJECT *buildbar P((WINDOW *win ));
  69. void checkmenu P((MENU *pm ));
  70. void menuupdate P((void ));
  71. void delmenubar P((void ));
  72. void do_menu P((EVENT *ep , int msg_buf []));
  73. void setkey P((int id , int item , int key ));
  74. int getascii P((int scan ));
  75. void checksc P((EVENT *ep , int key ));
  76.  
  77. /* scroll.c */
  78. int getsrcdiff P((WINDOW *win , int left, int top, int right, int bottom, int dh , int dv , int *snit , int diff [][], int *nr_diff ));
  79. void scrollby P((WINDOW *win , int left, int top, int right, int bottom, int dh , int dv ));
  80. void wscroll P((WINDOW *win , int left, int top, int right, int bottom, int dh , int dv ));
  81. void setscrollbars P((WINDOW *win ));
  82. void do_scroll P((int msg_buf []));
  83. void rectsubt P((int *a , int *b , int diff [][], int *nr_diff ));
  84. void autoscroll P((WINDOW *win , int h , int v ));
  85.  
  86. /* style.c */
  87. void wsetplain P((void ));
  88. void wsethilite P((void ));
  89. void wsetinverse P((void ));
  90. void wsetitalic P((void ));
  91. void wsetbold P((void ));
  92. void wsetbolditalic P((void ));
  93. void wsetunderline P((void ));
  94. void wgettextattr P((TEXTATTR *attr ));
  95. void wsettextattr P((TEXTATTR *attr ));
  96.  
  97. /* trees.c */
  98. int tr_root P((TREE *t ));
  99. int tr_parent P((TREE *t ));
  100. int tr_sibling P((TREE *t ));
  101. int tr_child P((TREE *t ));
  102. int tr_nchildren P((TREE *t ));
  103. OBJECT *tr_add P((TREE *t , int as_child , int type , int flags , int state , long spec , int x , int y , int width , int height ));
  104. void tr_dump P((TREE *t ));
  105. OBJECT *tr_node P((TREE *t ));
  106. OBJECT *tr_tree P((TREE *t ));
  107.  
  108. /* window.c */
  109. void winit P((void ));
  110. void winitnew P((int *pargc , char **pargv []));
  111. void wdone P((void ));
  112. WINDOW *wopen P((char *title , void (*drawproc )()));
  113. void wclose P((WINDOW *win ));
  114. WINDOW *getwin P((int handle ));
  115. void wsetactive P((WINDOW *win ));
  116. WINDOW *wgetactive P((void ));
  117. void wgetscrsize P((int *pwidth , int *pheight ));
  118. void wgetscrmm P((int *pmmhor , int *pmmvert ));
  119. void wsettitle P((WINDOW *win , char *title ));
  120. void wsetdefwinsize P((int width , int height ));
  121. void wsetmaxwinsize P((int width , int height ));
  122. void wsetdefwinpos P((int h , int v ));
  123. void wgetwinsize P((WINDOW *win , int *pwidth , int *pheight ));
  124. void _setsize P((WINDOW *win , int h , int v , int width , int height ));
  125. void wsettimer P((WINDOW *win , int dtime ));
  126. void wfleep P((void ));
  127. int wlineheight P((void ));
  128. int wtextwidth P((char *str , int len ));
  129. int wcharwidth P((int c ));
  130.